<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<div class="modal-dialog ms-modal-dialog" style="margin-top:50px;" >
  <div class="modal-content">
     
    <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
      <h4 class="modal-title">培训分类查询</h4>
    </div>
    
    <form class="form-horizontal ms-form modal-search-form" role="form" method="GET" action="${ctx.host}/training-categories" data-validate="true">
        
      <input type="hidden" name="filter" value="true">
              
         <div class="modal-body">

          <div class="form-group  ms-form-group">
            <label class="control-label col-xs-3">一级分类：</label>
            <div class="col-xs-8 pull-left">
              <select class="select2 form-control" name="parentId" data-validate="required" id="selFirstCat" >
              	<option value="">全部</option>
                <c:forEach items="${firstCategories}" var="trainingCategory">
                  <option value="${trainingCategory.id}">${trainingCategory.name}</option>
                </c:forEach>
              </select>
            </div>
          </div>
             
          <div class="form-group  ms-form-group">
            <label class="control-label col-xs-3">分类名称：</label>
            <div class="col-xs-8 pull-left">
              <input type="text" class="form-control" name="name" value="" placeholder="分类名称" data-validate="required" autocomplete="off" tabindex="1"/>
            </div>
          </div>
             
         
        </div>
      <div class="modal-footer ms-modal-footer">
        <button type="submit" class="btn btn-shadow-success btn-shadow umu-btn">查询</button>
        <button type="button" class="btn btn-shadow-default btn-shadow umu-btn" data-dismiss="modal">取消</button>
      </div>
  </div>
      </form>
    
  </div>
</div>
